package com.leejw.tradeblogsystem.mapper;

import com.leejw.tradeblogsystem.model.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

//@Mapper
public interface UserMapper {
    @Select("select * from user where name =#{name} and password=#{password}")
    User login(@Param("name") String userName, @Param("password") String password);

    User selectByPrimaryKey(Integer id);


}
